package com.usdt.system.domain.resp;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.apache.tomcat.util.digester.ArrayStack;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Tag(name = "销控图-房间信息VO")
public class RoomSaleChart2RespVo {

	@Schema(title = "房间id")
	private String roomId;
	
	@Schema(title = "房间号/床位号")
	private String roomName;
	
	@Schema(title = "所属房间")
	private String room;
	
	@Schema(title = "楼栋")
	private String building;
	
	@Schema(title = "楼层")
	private String floor;
	
	@Schema(title = "几人间(房间类型)")
	private String number;
	
	@Schema(title = "朝向")
	private String face;
	
	@Schema(title = "客房类型")
	private String roomType;
	
	@Schema(title = "入住状态")
	private String checkInStatus;
	
	@Schema(title = "面积")
	private BigDecimal area;
	
	@Schema(title = "标准销售价/标准床位费")
	private BigDecimal standardSalePrice;
	
	@Schema(title = "销售价格(租金)")
	private BigDecimal salePrice;
	
	@Schema(title = "入住情况（几人/占用）")
	private String checkInSituation;
	
	@Schema(title = "护理费用")
	private BigDecimal carePrice;
	
	@Schema(title = "会籍状态")
	private String vipTypes;
	
	@Schema(title = "护理等级")
	private String careLevel;
	
	@Schema(title = "目前状态")
	private String status;
	
	@Schema(title = "部门id")
	private String deptId;
	
	@Schema(title = "部门名称")
	private String deptName;
	
	@Schema(title = "人员 ")
	private List<RoomSaleChartCustomerRespVo> customerList;
	
	public String getCareLevel() {
		if(StringUtils.isBlank(careLevel)) {
			return careLevel;
		}
		if("无".equals(careLevel)) {
			return null;
		}
		List<String> list = Arrays.asList("1级","2级","3级","4级");
		if(!list.contains(careLevel)) {
			return "1级";
		}
		return careLevel;
	}
	
}
